﻿//Write a program that reads from the console a positive integer number N (N < 20) and outputs a matrix.

using System;

class PrintNNumbersMatrix
{
    static void Main()
    {
        Console.Write("Enter positive integer number N = ");
        string numberString = Console.ReadLine();
        byte number;
        if (byte.TryParse(numberString, out number) && number > 1 && number < 20)
        {
            for (byte i = 1; i <= number; i++)
            {
                for (byte j = i; j <= number + i - 1; j++)
                {
                    Console.Write("{0,2} ", j);
                }
                Console.WriteLine();
            }
        }
        else
        {
            Console.WriteLine("Out of range (1 < N < 20) !");
        }
    }
}
